﻿/*****************************************************************//**
 * @file   VAOneXMLAdaptorAcousticsNCTSeptum.h
 * @brief  VAOne读写适配器多层声学包层：隔离板
 *
 * @author liuzhiyuan(liuzhiyuan@diso.cn)
 * @date   2024-11-05
 *********************************************************************/
#ifndef VAONEXMLADAPTORACOUSTICSNCTSEPTUM_H
#define VAONEXMLADAPTORACOUSTICSNCTSEPTUM_H

#include "FITKVAOneXMLIOAPI.h"
#include "FITKAbstractVAOneXMLAdaptor.h"
#include "FITK_Kernel/FITKCore/FITKCoreMacros.h"
#include "FITK_Kernel/FITKAdaptor/FITKIOAdaptorFactory.h"
#include "rapidxml.hpp"

namespace IO
{
    /**
     * @brief   VAOne读写适配器多层声学包层：隔离板
     * @author  liuzhiyuan(liuzhiyuan@diso.cn)
     * @data    2024-11-05
     */
    class FITKVAOneXMLIOAPI VAOneXMLAdaptorAcousticsNCTSeptum : public FITKAbstractVAOneXMLAdaptor
    {
        FITKCLASS(IO, VAOneXMLAdaptorAcousticsNCTSeptum);
    public:
        /**
         * @brief   构造函数
         * @author  liuzhiyuan(liuzhiyuan@diso.cn)
         * @data    2024-11-05
         */
        explicit VAOneXMLAdaptorAcousticsNCTSeptum()= default;
        /**
         * @brief   析构函数
         * @author  liuzhiyuan(liuzhiyuan@diso.cn)
         * @data    2024-11-05
         */
        ~VAOneXMLAdaptorAcousticsNCTSeptum() = default;
        /**
         * @brief   适配器读数据
         * @return  是否执行成功
         * @author  liuzhiyuan(liuzhiyuan@diso.cn)
         * @date    2024-11-05
         */
        bool adaptR() override;
        /**
         * @brief   适配器写数据
         * @return  是否执行成功
         * @author  liuzhiyuan(liuzhiyuan@diso.cn)
         * @date    2024-11-05
         */
        bool adaptW() override;

    private:

        /**
         * @brief   读取多层声包层：隔离板
         * @return  是否执行成功
         * @author  liuzhiyuan(liuzhiyuan@diso.cn)
         * @date    2024-11-05
         */
        bool readNCTSeptum();
        /**
         * @brief   读取多层声包层：隔离板
         * @return  是否执行成功
         * @author  liuzhiyuan(liuzhiyuan@diso.cn)
         * @date    2024-11-05
         */
        bool writeNCTSeptum();


    };
    Register2FITKIOAdaptorFactory(VAOneXML, Acoustics::FITKAcousticsNCTSeptum, VAOneXMLAdaptorAcousticsNCTSeptum)
}

#endif // VAONEXMLADAPTORACOUSTICSNCTSEPTUM_H
